var UIToastr = function () {

    return {
        //main function to initiate the module
        init: function () {

            var i = -1,
                toastCount = 0,
                $toastlast;

                var shortCutFunction = "error"; //warning
                var msg = "dibutuhkan Penerjemah dan Encoder yg niat untuk rilisan Anime Movie";
                var title = "RECRUITMENT";
                var toastIndex = toastCount++;

                toastr.options = {
                    closeButton: false,
                    debug: false,
                    positionClass: 'toast-bottom-right',
                };

                toastr.options.onclick = function () {
                    window.open('http://bit.ly/BahasaRECRUITMENT');
                };
               
                toastr.options.showDuration = "600000";
                toastr.options.hideDuration = "1000";
                toastr.options.timeOut = "600000";
                toastr.options.extendedTimeOut = "1000";
                toastr.options.showEasing = "swing";
                toastr.options.hideEasing = "linear";
                toastr.options.showMethod = "fadeIn";
                toastr.options.hideMethod = "fadeOut";
                
           
                $("#toastrOptions").text("Command: toastr[" + shortCutFunction + "](\"" + msg + (title ? "\", \"" + title : '') + "\")\n\ntoastr.options = " + JSON.stringify(toastr.options, null, 2));
                var $toast = toastr[shortCutFunction](msg, title); // Wire up an event handler to a button in the toast, if it exists
                $toastlast = $toast;

        }
    };
}();